import tkinter
import threading
import time


root = tkinter.Tk()
root.title("水果机游戏")
root.minsize(300,300)

# 摆放按钮
bth1 = tkinter.Button(root,text="樱桃",bg="red")
bth1.place(x=20,y=20,width=50,height=50)

bth2 = tkinter.Button(root,text="西瓜",bg="green")
bth2.place(x=80,y=20,width=50,height=50)

bth3 = tkinter.Button(root,text="香蕉",bg="yellow")
bth3.place(x=20,y=80,width=50,height=50)

bth4 = tkinter.Button(root,text="葡萄",bg="violet")
bth4.place(x=80,y=80,width=50,height=50)

root.mainloop()